package com.reading_recognition_system.mapper;

import com.reading_recognition_system.pojo.Error;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface ErrorMapper {
    @Select("select * from error")
    public List<Error> findAllError();
    @Delete("delete from error")
    public Integer deleteAllError();
    @Insert("insert into error(u_id,timestamp,type,title) values(#{uId},#{timestamp},#{type},#{title})")
    public Integer insertError(Error error);
    @Delete("delete from error where e_id=#{e_id}")
    public Integer deleteOneError(@Param("e_id") int e_id);
}
